Improved completion by allowing configuration of whether option values should be completed#1250
Conversation
|
Hello, I’ve just improved I’ve also improved the completion provider so you can control whether a completion proposal should be completed or not, as mentioned in #285. See the following examples. This means completion will behave as follows: The second example shows how to use a completion provider with completion disabled for its completion proposals. This means completion will behave as follows: In this case, the completion proposals are appended with I’ve also added many tests to cover this behavior. As a next step, it could be useful to allow defining a custom separator character instead of just a space or equals sign, but that would require changes to the command parser as well. |
|
@fmbenhassine Please take a look at this PR. |
a39c294 to
79086d2
Compare
79086d2 to
9b36c4d
Compare
|
Conflicts resolved, it is ready to merge if the change is suitable. Please, let me know. |
9b36c4d to
7e8cc9c
Compare
|
Thank you for the PR! I need more time to think about this new |
|
@fmbenhassine Yes, I’m aware of the new attribute. I’m absolutely fine if you suggest a different solution or attribute name, or if you decide this isn’t a good approach at all. I’ll keep this PR open and resolve all conflicts. |
…s should be completed Signed-off-by: David Pilar <david@czpilar.net>
7e8cc9c to
15bec06
Compare
Improves #1246
Resolves #285